package com.recSys.inter;


import com.recSys.model.FamilyCommunityMember;
import com.recSys.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FamilyCommunityMemberMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FamilyCommunityMember record);

    int insertSelective(FamilyCommunityMember record);

    FamilyCommunityMember selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FamilyCommunityMember record);

    int updateByPrimaryKey(FamilyCommunityMember record);

    int batchInsert(List<FamilyCommunityMember> list);

    FamilyCommunityMember isMember(@Param("commId") Integer commId, @Param("userId") Integer userId);

    int deleteByCommId(Integer commId);

    int batchDelete(Map<String, Object> map);

    List<User> selectByCommId(@Param("commId")Integer commId);

}